﻿@{
    ViewBag.Title = "SessionList";
}
<style type="text/css">
    th
    {
        width: 100px;
        height: 100px;
        border: 1px red;
    }

    .Largeth
    {
        width: 170px;
        height: 100px;
        border: 1px red;
    }
</style>
@model IEnumerable<DrillOnline.Models.TrainingSession>
<h2>考试记录</h2>
<table class="table bg-white" style="width:100%">
    <tr>
        <th>场次
        </th>
        <th class="Largeth">开始时间
        </th>
        <th class="Largeth">结束时间
        </th>

        <th>播放速率
        </th>
        <th class="Largeth">发生时刻
        </th>
        <th>操作
        </th>
    </tr>
    @foreach (var item in Model.OrderByDescending(v=>v.StartTime))
    {
        <tr>
            <td style="white-space:nowrap">@item.SessionName</td>
            <td>@item.StartTime.ToString("yyyy年MM月dd日HH点mm分")</td>
            <td>@item.EndTime.ToString("yyyy年MM月dd日HH点mm分")</td>
            <td>@item.PlayingRate</td>
            <td>@item.StoryBaseTime.ToString("yyyy年MM月dd日HH点mm分")</td>
            <td>@Html.ActionLink("[导出]", "ExportSession", new { sessionkey = @item.ID })</td>
        </tr>
    }
</table>
